<?php 
/**
 *  The installl script used to install and uninstall the GFC plug-in
 * 
 */
define('IN_DISCUZ', TRUE);
define('DISCUZ_ROOT', './');

if ($_REQUEST['action'] == 'uninstall') {
  require_once './include/common.inc.php';
  $sql = "DROP TABLE {$tablepre}gfcmapping";
  $db->query($sql);
  echo "";
} else {
  //Install DB table
  require_once './include/common.inc.php';
  $sql = "CREATE TABLE {$tablepre}gfcmapping (gfcid char(25), dzusername char(15), dzpassword char(32), thumbnail_url text, bio text, site char(75))";
  //TODO check whether is installed
  $db->query($sql);
  echo "Install Sucessfully. And please delete this file [gfcinstall.php]";
} else 
} 
?>